﻿@model KopeykaStore.Models.Category

@{
    ViewBag.Title = "KopeykaStore - " + Model.Name;
}
<div class="componentheading">@Model.Name</div>
    <ul id="product-list">
        @foreach (var product in Model.Products)
        {
            <li>
                <a class="pic" href="@Url.Action("Details", new { id = product.ProductId })">
                    <img alt="@product.Title" src="@product.ThumbnailUrl" />
                    <span>@product.Title</span>
                </a>
            </li>
        }
    </ul>

